<template>
  <div class="rules">
    <rich-text :nodes="home_activity_content"></rich-text>
  </div>
</template>

<script lang="ts" setup>
import { onLoad } from "@dcloudio/uni-app";
import { getHomeActivity } from "@/api/car";
const home_activity_content = ref("");
onLoad(() => {
  getHomeActivityHandle();
});
function getHomeActivityHandle() {
  // 获取活动说明
  getHomeActivity().then((res) => {
    const data = res.data;
    home_activity_content.value = data.home_activity_content;
  });
}
</script>

<style scoped lang="scss">
.rules {
  font-size: 30rpx;
  padding: 30rpx;
  min-height: 100vh;
  background: #fff;
}
</style>